package edu.hcmiu.portal.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;


/**
 * <a href="hook_taglistSoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class is used by
 * <code>edu.hcmiu.portal.service.http.hook_taglistServiceSoap</code>.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see edu.hcmiu.portal.service.http.hook_taglistServiceSoap
 *
 */
public class hook_taglistSoap implements Serializable {
    private long _taglistID;
    private String _taglistName;

    public hook_taglistSoap() {
    }

    public static hook_taglistSoap toSoapModel(hook_taglist model) {
        hook_taglistSoap soapModel = new hook_taglistSoap();

        soapModel.setTaglistID(model.getTaglistID());
        soapModel.setTaglistName(model.getTaglistName());

        return soapModel;
    }

    public static hook_taglistSoap[] toSoapModels(hook_taglist[] models) {
        hook_taglistSoap[] soapModels = new hook_taglistSoap[models.length];

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModel(models[i]);
        }

        return soapModels;
    }

    public static hook_taglistSoap[][] toSoapModels(hook_taglist[][] models) {
        hook_taglistSoap[][] soapModels = null;

        if (models.length > 0) {
            soapModels = new hook_taglistSoap[models.length][models[0].length];
        } else {
            soapModels = new hook_taglistSoap[0][0];
        }

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModels(models[i]);
        }

        return soapModels;
    }

    public static hook_taglistSoap[] toSoapModels(List<hook_taglist> models) {
        List<hook_taglistSoap> soapModels = new ArrayList<hook_taglistSoap>(models.size());

        for (hook_taglist model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new hook_taglistSoap[soapModels.size()]);
    }

    public long getPrimaryKey() {
        return _taglistID;
    }

    public void setPrimaryKey(long pk) {
        setTaglistID(pk);
    }

    public long getTaglistID() {
        return _taglistID;
    }

    public void setTaglistID(long taglistID) {
        _taglistID = taglistID;
    }

    public String getTaglistName() {
        return _taglistName;
    }

    public void setTaglistName(String taglistName) {
        _taglistName = taglistName;
    }
}
